import request from './request'

/**
 * 获取Socket地址
 * @returns {Promise}
 */
export function getSocketUrl(data) {
  return request({
    url: '/api/sys/socket_url',
    method: 'post',
    data
  })
}

/**
 * 获取订单卡种
 * @param {{trade_no:string}} data
 * @returns {Promise}
 */
export function getOrderScheme(data) {
  console.log('data',data)
  return request({
    url: '/api/order/scheme',
    method: 'post',
    data
  })
}

